define(['app'], function(app) {
	'use strict';

	var controller = function controller($scope, $stateParams, $sce, Child_center) {
		$scope.child_title = $stateParams.title;
		$scope.init_data = function() {
			$scope.article_id = $stateParams.article_id;
			Child_center.get_data($scope.article_id, function(data) {
				$scope.data = $sce.trustAsHtml(data.text);
			})
		}
		$scope.init_data();
	}

	controller.$inject = ['$scope', '$stateParams', '$sce', 'Child_center'];

	return app.registerController("child_centerctrl",controller);
});